package cn.clq.ymcc.feign;

import cn.clq.ymcc.domain.Login;
import cn.clq.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author clqlongbao
 * @version 1.0
 * @description: TODO
 * @date 2022/7/19 15:42
 */
@FeignClient(value = "service-uaa",fallbackFactory =LoginFeignClientFallBackFactory.class )
public interface LoginFeignClient {

    @PostMapping("/login/save")
    JSONResult save(@RequestBody Login login);

    @GetMapping("/login/list")
    JSONResult list();
}
